.class public Lcom/noshufou/android/su/AppDetailsActivity;
.super Landroid/support/v4/app/FragmentActivity;
.source "AppDetailsActivity.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 26
    invoke-direct {p0}, Landroid/support/v4/app/FragmentActivity;-><init>()V

    return-void
.end method


# virtual methods
.method public goHome(Landroid/view/View;)V
    .locals 0
    .parameter "view"

    .prologue
    .line 51
    invoke-static {p0}, Lcom/noshufou/android/su/util/Util;->goHome(Landroid/content/Context;)V

    .line 52
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4
    .parameter "savedInstanceState"

    .prologue
    .line 31
    invoke-super {p0, p1}, Landroid/support/v4/app/FragmentActivity;->onCreate(Landroid/os/Bundle;)V

    .line 33
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    .line 34
    .local v0, config:Landroid/content/res/Configuration;
    iget v2, v0, Landroid/content/res/Configuration;->orientation:I

    const/4 v3, 0x2

    if-ne v2, v3, :cond_1

    .line 35
    iget v2, v0, Landroid/content/res/Configuration;->screenLayout:I

    and-int/lit8 v2, v2, 0xf

    .line 36
    const/4 v3, 0x4

    .line 35
    if-ne v2, v3, :cond_1

    .line 37
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsActivity;->finish()V

    .line 48
    :cond_0
    :goto_0
    return-void

    .line 41
    :cond_1
    const/high16 v2, 0x7f03

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/AppDetailsActivity;->setContentView(I)V

    .line 42
    if-nez p1, :cond_0

    .line 43
    const-class v2, Lcom/noshufou/android/su/AppDetailsFragment;

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    .line 44
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v3

    .line 43
    invoke-static {p0, v2, v3}, Landroid/support/v4/app/Fragment;->instantiate(Landroid/content/Context;Ljava/lang/String;Landroid/os/Bundle;)Landroid/support/v4/app/Fragment;

    move-result-object v1

    .line 45
    .local v1, fragment:Landroid/support/v4/app/Fragment;
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v2

    .line 46
    const v3, 0x7f0a0003

    invoke-virtual {v2, v3, v1}, Landroid/support/v4/app/FragmentTransaction;->add(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/FragmentTransaction;->commit()I

    goto :goto_0
.end method
